package com.colabo.j2ee.web.oaf.security;

import java.util.List;

import com.colabo.j2ee.web.core.exception.ServiceException;
import com.colabo.j2ee.web.core.vo.RecordObject;

public interface IResourceRelationService {
	String BEAN_ID = "resourceRelationService";
	/**
	 * 保存资源关联对象
	 * @param coreResource
	 * @param relatedResource
	 * @throws ServiceException
	 */
	public void saveRelation(RecordObject coreResource, RecordObject relatedResource) throws ServiceException;
	/**
	 * 获得所有关联资源
	 * @param resource
	 * @return
	 * @throws ServiceException
	 */
	public List getAllRelatedResources(RecordObject resource) throws ServiceException;
}
